package com.xhl.vo;

import java.io.Serializable;
import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository
@Scope("prototype")
public class ProductVO implements Serializable {


    private static final long serialVersionUID = 1L;

    private int pid;            //pid
    private String name;        //
    private String subTitle;    //
    private double orignalPrice;//
    private double promotePrice;//
    private Long stock;        //
    private String createDate;    //
    private int cid;            //

    private List<ProductImageVO> pivolist;    //商品

    private List<ReviewVO> rvolist;    //评论

    private String orderSUM;        //销量

    private List<PropertyVO> ptvolist;    //属性

    public List<PropertyVO> getPtvolist() {
        return ptvolist;
    }

    public void setPtvolist(List<PropertyVO> ptvolist) {
        this.ptvolist = ptvolist;
    }

    public String getOrderSUM() {
        return orderSUM;
    }

    public void setOrderSUM(String orderSUM) {
        this.orderSUM = orderSUM;
    }

    public List<ProductImageVO> getPivolist() {
        return pivolist;
    }

    public void setPivolist(List<ProductImageVO> pivolist) {
        this.pivolist = pivolist;
    }

    public List<ReviewVO> getRvolist() {
        return rvolist;
    }

    public void setRvolist(List<ReviewVO> rvolist) {
        this.rvolist = rvolist;
    }


    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }


    public double getOrignalPrice() {
        return orignalPrice;
    }

    public void setOrignalPrice(double orignalPrice) {
        this.orignalPrice = orignalPrice;
    }

    public double getPromotePrice() {
        return promotePrice;
    }

    public void setPromotePrice(double promotePrice) {
        this.promotePrice = promotePrice;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "ProductVO [pid=" + pid + ", name=" + name + ", subTitle=" + subTitle + ", orignalPrice=" + orignalPrice
                + ", promotePrice=" + promotePrice + ", stock=" + stock + ", createDate=" + createDate + ", cid=" + cid
                + ", pivolist=" + pivolist + ", rvolist=" + rvolist + ", orderSUM=" + orderSUM + ", ptvolist="
                + ptvolist + "]";
    }


}
